import type { PlusColumn } from 'plus-pro-components'

import { ConditionInit } from '@fl/api/anjutong'

export function useForm() {
    const schema: PlusColumn[] = [
        {
            label: '标签类型',
            options: [{
                label: '手动标签',
                value: 1,
            }, {
                label: '自动标签',
                value: 0,
            }],
            prop: 'typeTag',
            valueType: 'select',
            width: 300,
        },
        {
            label: '标签名称',
            prop: 'nameTap',
            valueType: 'copy',
            width: 300,
        },
    ] as const

    const form = ref({
        nameTap: '',
        typeTag: '',
    })
    return { form, schema }
}
